package com.bw.zg3park2212.viewmodel

import androidx.lifecycle.MutableLiveData
import com.bw.base.entity.MsgEntity
import com.bw.base.mvvm.BaseViewModel
import com.bw.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class MsgViewMode @Inject constructor(val apiService: ApiService): BaseViewModel() {
    var msgSuccse=MutableLiveData<MsgEntity>()
    fun getMsg(accessId:String,userId:Int){
        httpRequst(
            {apiService.getmsg(accessId, userId)},
            msgSuccse::postValue
        )
    }
}